﻿using BLL;
using Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading;
using System.Web;
using System.Web.Mvc;

namespace _2301MVCDemo.Controllers
{
    public class AjaxController : Controller
    {
        // GET: Ajax
        public ActionResult Index()
        {
            ViewBag.datetime = DateTime.Now.ToString("yyyy年MM月dd日 HH:mm:ss");

            return View();
        }

        public ActionResult CList()
        {
            Thread.Sleep(10000);//睡眠10秒
            List<Customer> list = CustomerManager.CustomersList();
            return PartialView("_PartialCustomerList",list);
        }
    }
}